package gg;

import java.util.Scanner;

public class Diandao {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个三位数的整数");
        int a=sc.nextInt();
        int ge=a%10;
        int shi=a/10%10;
        int bai=a/100%10;
        if (a>=100&&a<=999){
            int sum= ge*100+shi*10+bai;
            System.out.println(a+"颠倒后的值是: "+sum);
        }else {
            System.out.println("你输入的数值不在范围");
        }
    }
}
